/**
  ******************************************************************************
  * @file    Task.h
  * @author  Dajin Li
  * @version V0.0.1
  * @date    08-08-2015 
  * @brief   This file contains the declarations and definitions for the task function  
  *			 for the OS. 	 
  *          
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; KION(SZ) R&D Center
  *
  * Licensed under KION, (the "License");
  *
  ******************************************************************************
  */

#ifndef __TASK_H__
#define __TASK_H__
/* Includes ------------------------------------------------------------------*/

#include "global.h"
// ************************* << DEFINES  >> *******************************


// Task scheduling intervals in OS_TICK increments
// TIMER_TICK is defined in milliseconds - must match RTX configuration in RTX_Config.c file!



// Index number for each task
#define BIS_LEN                                                       7
void GPIO_Initial(void);
void Fault_Input_Init(void);
void RTC_Configuration(void); 
void LCD_init(void);
void SPI_EE_Init(void); 
void AnalogInputs_Init(void);
void BDI_init(void);
void load_parameters_from_ee(void);
void Save_Parameter(u8 i);
void enableWRP(u8 flag);
void EraseFlash(void);
void JumpToApp(void);


extern u8 stay_for_ever;
extern u16 stay_in_boot_time;
extern volatile u32 osTick;

#endif

